package com.sheep.api.hive.service.impl;

import com.sheep.api.hive.HiveCommonService;
import com.sheep.api.hive.dao.HiveCommonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 16-4-14
 * Time: 下午3:51
 * To change this template use File | Settings | File Templates.
 */
@org.springframework.stereotype.Service
@com.alibaba.dubbo.config.annotation.Service
public class ImplCommonService implements HiveCommonService {
    @Autowired
    @Qualifier("hiveCommonByFactoryDaoImpl")
    private HiveCommonDao dao;

    @Override
    public void createTable() {
        dao.createTable();
    }

    @Override
    public List<String> getAllTableRecord(String tableName) {
        return dao.getAllTableRecord(tableName);
    }


    @Override
    public List<String> getTableRecord(String key, String tableName) {
        return dao.getTableRecord(key, tableName);
    }

}
